package org.credo.thread.Condition;

public class MainTest {

	public static void main(String[] args) {
		Account acc=new Account("zhaoqian", 0);
		new GetMoneyThread("取钱人", acc, 800).start();
		
		new Thread(new SaveMoneyThread(acc, 800), "存钱人1").start();
		new Thread(new SaveMoneyThread(acc, 800), "存钱人2").start();
		new Thread(new SaveMoneyThread(acc, 800), "存钱人3").start();
	}
}
